package Models;
import java.util.Random;

public class Dice {
	private int sides;
	private String label;
	private int eyes;
	private int luckyNumber;
	
	public Dice(){
		label = "Dice";
		sides = 6;
		eyes = 1;
	}
	
	public Dice(int sides, String label){
		this.eyes = 1;
		this.label = label;
		this.sides = sides;
	}

	public int roll(){
		int randomNr;
		Random r = new Random();
		randomNr = r.nextInt(sides)+1;
		System.out.println(randomNr + "RANDOM ");
		eyes = randomNr;
		return randomNr;	
	}
	
	public int getLuckyNumber() {
		return luckyNumber;
	}
	
	public void setLuckyNumber(int luckyNumber) {
		this.luckyNumber = luckyNumber;
	}
	
	public int getEyes(){
		return eyes;
	}
	
	public void setSides(int sides){
		this.sides = sides;
	}
	
	public int getSides(){
		return sides;
	}
	
	public void setLabel(String label){
		this.label = label;
	}
	
	public String getLabel(){
		return label;
	}
	
	public String toString(int n){
		return ""+n;
	}
}